package cn.wdm.ymcc.feign;

import cn.wdm.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "service-media",fallbackFactory = MediaFeignClientFallBackFactory.class)
public interface MediaFeignClient {

    @RequestMapping(value = "/mediaFile/getMediasByChapterId/{chapterId}",method = RequestMethod.GET)
     JSONResult getMediasByChapterId(@PathVariable("chapterId") Long chapterId);
}
